//
//  AssetViewCell.h
//  图片选择器每个组的子视图的自定义Cell
//
//  Created by Yangfan on 15/2/4.
//  Copyright (c) 2015年 4gread. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AssetsLibrary/AssetsLibrary.h>
#import "AssetView.h"

@protocol AssetViewCellDelegate;
@interface AssetViewCell : UITableViewCell<AssetViewDelegate>
@property(nonatomic,weak)id<AssetViewCellDelegate> delegate;
/**
 *  <#Description#>
 *
 *  @param assets                  需要展示的图片，有多张，所以是一个NSArray
 *  @param selectionFilter         <#selectionFilter description#>
 *  @param minimumInteritemSpacing <#minimumInteritemSpacing description#>
 *  @param minimumLineSpacing      <#minimumLineSpacing description#>
 *  @param columns                 每行有多少个图片
 *  @param assetViewX              <#assetViewX description#>
 */
- (void)bind:(NSArray *)assets selectionFilter:(NSPredicate*)selectionFilter minimumInteritemSpacing:(float)minimumInteritemSpacing minimumLineSpacing:(float)minimumLineSpacing columns:(int)columns assetViewX:(float)assetViewX;
@end

@protocol AssetViewCellDelegate <NSObject>
- (BOOL)shouldSelectAsset:(ALAsset*)asset;
- (void)didSelectAsset:(ALAsset*)asset;
- (void)didDeselectAsset:(ALAsset*)asset;
@end